Method and system for placing an insertion point in an electronic document

ABSTRACT

A method for placing an insertion point in an electronic document in an electronic system for creating and editing an electronic document. Context information regarding a location of a cursor in the electronic document is collected. A coinciding rule is selected from one of a number of rules based on the collected context information. In response to selecting a coinciding rule, the cursor is changed to indicate an anticipated location of the insertion point and the associated formatting rules to be applied. A determination is made whether an indication has been received to place the insertion point in the electronic document, and, if so, then formatting is performed to place the insertion point in the electronic document.

TECHNICAL FILED

[0001] This invention relates to word processing program modules. More particularly, this invention relates to a method and system for placing an insertion point in an electronic document.

BACKGROUND OF THE INVENTION

[0002] Using modem word processing program modules to create and edit electronic files, or electronic documents, is often convenient and efficient. Word processing program modules typically display an insertion point, such as a blinking short vertical line to indicate the point at which elements may be added to an electronic document. Text, tables, and other elements are typically added to an electronic document beginning at an insertion point. However, the usual method for positioning an insertion point in an electronic document is sometimes counterintuitive to users.

[0003] Typically, using a U.S. word processing program module, an insertion point is vertically positioned by using the enter key to add “paragraph marks” and horizontally positioned by adding tabs or spaces on a line. This typical method is based upon the typewriter concept of the use of tabs and carriage returns to move down and across a typewritten page. However, many users, including Asian users, are unfamiliar with typewriters. Thus, the typewriter metaphor for positioning an insertion point in an electronic document is counterintuitive to many users.

[0004] Some Asian versions of word processing program modules compose documents with spaces placed throughout the document and paragraph marks (¶) placed throughout the document. Because the document is composed of spaces, which are automatically created when a document is created, a user may position an insertion point anywhere within a document by clicking a mouse button and immediately begin typing in text at the cursor location. In contrast, in most program modules, each page must be created and then paragraph marks added to the pages of the document to vertically position the insertion point.

[0005] A drawback to the word processing program modules that are automatically filled with spaces is that there is no centering or alignment provided with the insertion point. Thus, the user cannot automatically align their text by simply inserting the cursor in a particular location. Another drawback of these word processing program modules that are automatically filled with spaces is that the electronic documents are difficult to edit because the document is multiple pages composed of text and spaces. Thus, any new typed entry effects placement of all text after the typed entry and may cause movement and shifting of text that is not desired by the user.

[0006] Some word processing program modules solve the problem of centering and alignment by allowing only three positioning areas: left aligned, centered, and right aligned. However, because these program modules do not examine the context of the cursor before adding the insertion point, these program modules have the drawback that a user is not able to position the insertion point exactly where desired if it is not at these three locations in a line. For example, a user may wish to place an insertion point very close to the right side of the document, but the user may not wish to have the insertion point right-aligned. These program modules with three position areas do not allow precise positioning of the insertion point.

[0007] Still other word processing program modules use fixed width tabs to position the insertion point rather than using left, right, and center alignment. However, these word processing program modules still suffer from several drawbacks. First, the granularity of these program modules is limited because the tabs all have fixed widths. In other words, the insertion point may only be placed at tab stops even if the user desires a different positioning. Another drawback is that text below and to the right of the insertion point may be moved down the page when an insertion is made even though that may not be the desire of the user.

[0008] There is a need for an intuitive method and system for positioning an insertion point in an electronic document that examines existing formatting, existing text, and context to determine the necessary formatting that needs to be applied and insertion point location. There is a further need for a method and system for positioning an insertion point that provides an indication to the user of possible insertion point placement should the user double-click the mouse button. There is still a further need for a method and system for positioning an insertion point that does not move text below the insertion point counterintuitively to the user's desires. There is still a further need for a method and system for positioning an insertion point that changes the attributes of objects in a document so that the cursor is positioned correctly, such as by wrapping text on an image or table.

SUMMARY OF THE INVENTION

[0009] The present invention satisfies the above described needs by allowing an insertion point to be positioned at various points within an electronic document simply by double-clicking a button on a mouse. Generally described, the present invention provides a computer-implemented method for placing an insertion point in an electronic document. The present invention determines the location that the user is double-clicking on and determines the most likely position that the user wants to place the insertion point based on the context information of the cursor location. The present invention then makes any necessary formatting (and text and object attribute) adjustments in the electronic document to position the insertion point in the electronic document.

[0010] In one aspect, context information regarding a location of a cursor in the electronic document is collected. A coinciding rule is selected, based on the collected context information, from one of a number of rules. In response to selecting a coinciding rule, the cursor is changed to indicate the anticipated formatting rule to be applied. A determination is made whether an indication has been received to place the insertion point in the electronic document, and, if so, then formatting is performed to place the insertion point in the electronic document.

[0011] In one aspect, the step of determining whether an indication has been received to place the insertion point in the electronic document may be accomplished by determining whether a button on a mouse has been double-clicked.

[0012] In another aspect, the invention may include the step of adding and deleting properties from the electronic document to perform formatting to place the insertion point in the electronic document.

[0013] In one aspect, the step of collecting context information regarding a location of a cursor in the electronic document may be performed in response to a change in the location of the cursor.

[0014] In still another aspect, each one of the rules may be associated with a trigger, and the step of selecting a coinciding rule from one of a number of rules based on the collected context information is accomplished by matching the collected context information with one of the triggers and selecting the rule associated with the matched trigger as the coinciding rule.

[0015] In yet another aspect, each one of the rules may be associated with a sequence of formatting steps. The step of performing formatting to place the insertion point in the electronic document may be accomplished by performing the sequence of formatting steps associated with the coinciding rule.

[0016] In still another aspect, the present invention is a method for displaying a special cursor indicating the formatting which will take place when the user double-clicks the mouse button. Context information regarding a location of the cursor is collected and the collected context information is applied to a database of rules to determine whether the collected context information coincides with one of the rules. If so, then it is determined which one of a number of cursors is associated with the coinciding rule, and the associated cursor is displayed in order to signify to the user what formatting will be applied. The associated cursor typically indicates the anticipated location of an insertion point in the electronic document. The cursors may include a left alignment icon, a right alignment icon, a center alignment icon, and a text wrap icon.

[0017] In still another aspect, the present invention is a method for adjusting the location of an insertion point in an electronic file to match the location of a cursor. Context information regarding a location of a cursor in the electronic file is collected and applied to a database of rules to determine whether the collected context information coincides with one of the rules. If so, then the location of the insertion point is adjusted based upon the coinciding rule. A determination is made whether the location of the insertion point matches the location of the cursor, and, if not, then context information is collected again and the steps described above are repeated.

[0018] These and other features, advantages, and aspects of the present invention may be more clearly understood and appreciated from a review of the following detailed description of the disclosed embodiments and by reference to the appended drawings and claims.

BRIEF DESCRIPTION OF THE DRAWINGS

[0019]FIG. 1 is a block diagram of a computer that provides the exemplary operating environment for the present invention.

[0020]FIG. 2 is a flowchart illustrating a method for placing an insertion point in an electronic document in accordance with an exemplary embodiment of the present invention.

[0021]FIG. 3 is a flowchart illustrating a method for placing an insertion point in an electronic document and displaying a cursor in accordance with an exemplary embodiment of the present invention.

[0022]FIGS. 4A and 4B are illustrations of a method for placing an insertion point in an electronic document in accordance with an exemplary embodiment of the present invention.

DETAILED DESCRIPTION

[0023] The present invention is directed toward a method and system for placing, or positioning, an insertion point in an electronic document. In one embodiment, the invention is incorporated into a preferred word processing application program entitled “WORD 9.0”, marketed by Microsoft Corporation of Redmond, Wash. Briefly described, the preferred application program allows a user to create and edit electronic documents by entering characters, symbols, graphical objects, and commands. “WORD 9.0” also includes a Click and Type feature.

[0024] The Click and Type feature of the preferred application program allows a user to place an insertion point at various points within an electronic document without having to manually add spaces, tabs or carriage returns to the document. Generally described, the location that the user is clicking on with a cursor is determined. The most likely position that the user wants to place the insertion point and text and object formatting attributes are determined based on the context information regarding the cursor location. Any necessary formatting adjustments are made in the electronic document to place the insertion point at the cursor location.

[0025] The Click and Type feature provides an intuitive method for placing an insertion point before entering text or other elements into a document. The Click and Type feature eliminates the limits on insertion point placement, which are imposed by the location of paragraph marks and the end of document (EOD) marker. The Click and Type feature will also allow easy positioning of tables, graphics, and text by providing automatic application, or formatting, of tabs, indents, alignment and other formatting constructs. Oftentimes, in the prior art, a user could use the mouse to position the insertion point anywhere text exists in a document, but the user was constrained by the boundaries of the existing text, including paragraph marks.

[0026] Thus, using the Click and Type feature, a user may place the insertion point, using the mouse, in the middle of a blank page without having to hit the Enter key several times to insert paragraph marks. Likewise, a user may place the insertion point on the right side of a page by double-clicking on the right side of a page. The user does not need to enter spaces, tabs, or right justification. Therefore, the Click and Type feature eliminates insertion point placement limitations, which had been previously limited vertically by the need for paragraph marks and which had been limited horizontally by the need for other characters or spaces.

[0027] Some of the advantages of the Click and Type feature may be better understood through a brief description of an example. Suppose a user wishes to create a title page with the title of the document centered towards the top of a page and the author and date in the bottom right corner of the page. Using prior art methods, a user may have to perform the following steps:

[0028] 1. hit the Enter key several times to add paragraph marks and move vertically down the title page;

[0029] 2. change the paragraph format to “Centered”;

[0030] 3. type the title of the document;

[0031] 4. hit the Enter key several more times to add more paragraph marks and move vertically down the title page;

[0032] 5. change the paragraph format to “Right Jusitified”; and

[0033] 6. type the author's name and date. However, using the Click and Type feature, the same title page may be created without having to hit the Enter key and without having to manually set the justification. Thus, the steps would be:

[0034] 1. double-click in center of page, where title is desired;

[0035] 2. type the title of the document;

[0036] 3. double-click in bottom right side of page: and

[0037] 4. type the author's name and date.

[0038] Having briefly described an embodiment of the present invention, an exemplary operating environment for the present invention is described below.

[0039] Exemplary Operating Environment

[0040] Referring now to the drawings, in which like numerals represent like elements throughout the several figures, aspects of the present invention and the exemplary operating environment will be described.

[0041]FIG. 1 and the following discussion are intended to provide a brief, general description of a suitable computing environment in which the invention may be implemented. While the invention will be described in the general context of an application program that runs on an operating system in conjunction with a personal computer, those skilled in the art will recognize that the invention also may be implemented in combination with other program modules. Generally, program modules include routines, programs, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the invention may be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and the like. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

[0042] With reference to FIG. 1, an exemplary system for implementing the invention includes a conventional personal computer 20, including a processing unit 21, a system memory 22, and a system bus 23 that couples the system memory to the processing unit 21. The system memory 22 includes read only memory (ROM) 24 and random access memory (RAM) 25. A basic input/output system 26 (BIOS), containing the basic routines that help to transfer information between elements within the personal computer 20, such as during start-up, is stored in ROM 24. The personal computer 20 further includes a hard disk drive 27, a magnetic disk drive 28, e.g., to read from or write to a removable disk 29, and an optical disk drive 30, e.g., for reading a CD-ROM disk 31 or to read from or write to other optical media. The hard disk drive 27, magnetic disk drive 28, and optical disk drive 30 are connected to the system bus 23 by a hard disk drive interface 32, a magnetic disk drive interface 33, and an optical drive interface 34, respectively. The drives and their associated computer-readable media provide nonvolatile storage for the personal computer 20. Although the description of computer-readable media above refers to a hard disk, a removable magnetic disk and a CD-ROM disk, it should be appreciated by those skilled in the art that other types of media which are readable by a computer, such as magnetic cassettes, flash memory cards, digital video disks, Bernoulli cartridges, and the like, may also be used in the exemplary operating environment.

[0043] A number of program modules may be stored in the drives and RAM 25, including an operating system 35, one or more application programs 36, a word processor program module 37, program data 38, and other program modules (not shown).

[0044] A user may enter commands and information into the personal computer 20 through a keyboard 40 and pointing device, such as a mouse 42. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 21 through a serial port interface 46 that is coupled to the system bus, but may be connected by other interfaces, such as a game port or a universal serial bus (USB). A monitor 47 or other type of display device is also connected to the system bus 23 via an interface, such as a video adapter 48. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers or printers.

[0045] The personal computer 20 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 49. The remote computer 49 may be a server, a router, a peer device or other common network node, and typically includes many or all of the elements described relative to the personal computer 20, although only a memory storage device 50 has been illustrated in FIG. 1. The logical connections depicted in FIG. 1 include a local area network (LAN) 51 and a wide area network (WAN) 52. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.

[0046] When used in a LAN networking environment, the personal computer 20 is connected to the LAN 51 through a network interface 53. When used in a WAN networking environment, the personal computer 20 typically includes a modem 54 or other means for establishing communications over the WAN 52, such as the Internet. The modem 54, which may be internal or external, is connected to the system bus 23 via the serial port interface 46. In a networked environment, program modules depicted relative to the personal computer 20, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0047] Placing an Insertion Point in a Document

[0048] Briefly described, the present invention provides a method and system for positioning an insertion point in an electronic document. It should be understood that the insertion point is typically a flashing vertical line used to indicate where elements such as text will be inserted into a document. In most prior art program modules, the insertion point is positioned by adding paragraph marks to the document to vertically position the insertion point and by adding tabs or spaces to horizontally position the insertion point. This process is time-consuming and counterintuitive to many users. Thus, in prior art program modules, to enter text ten lines down on a page, the user must enter ten paragraph marks (¶) and then begin entering text. Using the present invention, as further described below, the user would simply move the cursor, using the mouse, ten lines down the first page and double-click the mouse button to position the insertion point. Thus, the user does not have to enter the ten paragraph marks.

[0049]FIG. 2 is a flow chart illustrating a method 200 for placing an insertion point in an electronic document in accordance with an exemplary embodiment of the present invention. Those skilled in the art will appreciate that this exemplary embodiment is a computer-implemented process that is carried out by the computer in response to input from the user and instructions provided by a program module.

[0050] Referring to FIG. 2, the method 200 begins at start step 205 and proceeds to step 210. At step 210, context information is collected in response to a change of cursor location. It should be understood that a cursor, or pointer, is typically used in the exemplary word processor program module to indicate the location that an insertion point will be placed if the user double-clicks the mouse button. The cursor is typically moved within a document by moving the mouse 42.

[0051] It should be understood that collecting context information is typically based on cursor position and comprises determining which paragraph the cursor is over. For example, typically, the cursor may be over existing text (including blank lines) or the cursor may be over no existing text. If the cursor is over existing text, then there are properties, or attributes, of the existing text that are examined. These properties include, but are not limited to, tab stops, section level properties (a section is typically defined by section breaks), and paragraph properties (a paragraph is text between two paragraph marks). If the cursor is over no existing text, then the closest text that is immediately above the cursor position is examined and properties, or attributes, of that text are examined.

[0052] In other embodiments, the collection of context information may comprise examining the alignment of the line over which the cursor is positioned, examining whether there is text on the line over which the cursor is positioned, examining whether tab stops exist on the line over which the cursor is positioned, determining the horizontal position of the cursor on the line, determining the vertical position of the cursor in the document, determining the formatting of text above the cursor location, and determining the formatting of text below the cursor location, just to name a few.

[0053] Table 1 is a list of the attributes, or context information, that are typically collected and examined at step 210 in an exemplary embodiment of the present invention. Table 1 includes an attribute number, an attribute name, and a brief description of each attribute. These attributes will be briefly described below Table 1. These attributes may be used by rule triggers, as described below, to determine where to position an insertion point in the document. In this detailed description, EOD will be used to refer to the end of a document, EOP will be used to refer to the end of a paragraph and IP will be used to refer to insertion point. TABLE 1 Attribute List No. Name Description  1 IP Position 1) At EOP of same line 2) EOD 3) Somewhere else  2 EODDist Number of lines between EOD and line over which the cursor is positioned.  3 TopDist Number of lines from Top line of page.  4 EOPDist Number of average size characters between current cursor location and EOP on the same line.  5 TextExists Text present on the Line over which the cursor is positioned.  6 EODExists EOD present on the Line over which the cursor is positioned.  7 LMDist Distance from left margin.  8 LPBDist Distance from left page boundary.  9 RMDist Distance from right page margin. 10 RPBDist Distance from right page boundary. 11 TMDist Distance from top page margin. 12 TPBDist Distance from top page boundary. 13 BMDist Distance from bottom page margin. 14 BPBDist Distance from bottom page boundary. 15 PageDist Number of pages between EOD and Floating IP. 16 TextSize Number of characters being dragged. 17 LineAlign Alignment of current line of text 18 LastAlign Alignment of last existing line of text. 19 ColumnInfo Some information on columns to allow. Disable if columns exist. 20 TableSize Actual measurements of table. 21 Tabs Number and types of tab on line. Also information regarding whether they are governed by default or set stop tabs. 22 LastTabs Number and types of tab stops on last line. 23 Table Determination whether insertion point is in a table. 24 VertCellPosition How far from the top of the cell is the IP in percentage? (i.e., 0 is at the top, 100 is at the bottom) 25 CellSize How big is the cell? This is needed for Zone calculation. 26 ParaTabsStops Number and location of tab stops in the paragraph. Also, for each one, a Boolean value is stored indicating whether the stop is being used in the paragraph. 27 LastParaTabsStops Number and location of tab stops in the paragraph. Also, for each one, a Boolean value is stored indicating whether the stop is being used in the paragraph. 28 PageBreak Number of lines below a page break on the current page. 29 TableonSide Is there a table to the left or right of the double-click area? What are the dimensions, and where vertically is this double- click, as measured against the object in percentage. 30 View What view is the user in? (Normal/Page View v. Online) 31 Primary Language What is the primary language version setting. 32 LinesSelected The number of entire lines selected.

[0054] Attribute 1 is insertion point position, or IP position. The IP position may be either: at the end of the paragraph (EOP) of the same line over which the cursor is positioned, at the end of the document (EOD), or somewhere else within the document.

[0055] Attribute 2 is the distance to the end of the document, or EODDist. The distance to the end of the document is the number of lines between the end of the document (EOD) and the floating insertion point, or floating IP. The floating IP may also be described as the line over which the cursor is positioned.

[0056] Attribute 3 is the distance to the top of the page, or TopDist. The TopDist is the number of lines from the top line of the page to the cursor location.

[0057] Attribute 4 is the distance to the end of the page, or EOPDist. The distance to the end of the page is typically the number of average size characters between current cursor location and the end of the paragraph on the same line.

[0058] Attribute 5 is TextExists and is an indication of whether or not text exists in the line over which the cursor is positioned.

[0059] Attribute 6 is EODExists and is an indication of whether or not the end of the document (marker) is present on the line over which the cursor is positioned.

[0060] Attribute 7 is LMDist and is the distance from the left margin of the document to the cursor location.

[0061] Attribute 8 is LPBDist and is the distance from the left page boundary to the cursor location.

[0062] Attribute 9 is RMDist and is the distance from the right margin of the document to the cursor location.

[0063] Attribute 10 is RPBDist and is the distance from the right page boundary to the cursor location.

[0064] Attribute 11 is TMDist and is the distance from the top page margin of the document to the cursor location.

[0065] Attribute 12 is TPBDist and is the distance from the top page boundary to the cursor location.

[0066] Attribute 13 is BMDist and is the distance from the bottom page margin of the document to the cursor location.

[0067] Attribute 14 is BPBDist and is the distance from the bottom page boundary to the cursor location.

[0068] Attribute 15 is PageDist and is the number of pages between the end of the document and the floating IP.

[0069] Attribute 16 is TextSize and is equal to the number of characters being dragged.

[0070] Attribute 17 is LineAlign and is the alignment of the current line of text over which the cursor is positioned.

[0071] Attribute 18 is LastAlign and is the alignment of the last existing line of text in the document.

[0072] Attribute 19 is ColumnInfo and is information on the columns to allow, such as how many columns are in the section over which the cursor is currently positioned.

[0073] Attribute 20 is TableSize and is the measurement of the table and its constituent cells. Thus, if a table cell is too narrow, no right or center alignment is allowed.

[0074] Attribute 21 is Tabs and is typically the number and type of tab stops on the line over which the cursor is positioned.

[0075] Attribute 22 is LastTabs and is typically the number and type of tab stops of the last line in the document.

[0076] Attribute 23 is Table and is an indication of whether the location of the cursor is currently within a table.

[0077] Attribute 24 is VertCellPosition and is an indication of how far from the top of the cell the insertion point is in percentage terms. For example, a zero typically indicates that the insertion point is at the top of the document and a 100 indicates that the insertion point is at the bottom of the document.

[0078] Attribute 25 is CellSize and corresponds to the size of the cell.

[0079] Attribute 26 is ParaTabStops and indicates the number and location of tab stops in the paragraph over which the cursor is currently positioned.

[0080] Attribute 27 is LastParaTabsStops and indicates the number and location of tab stops in the paragraph immediately preceeding the location of the cursor in the document.

[0081] Attribute 28 is PageBreak and indicates the number of lines below a page break that are on the current page.

[0082] Attribute 29 is an indication of whether there is a table on the left or right of the cursor location.

[0083] Attribute 30 is View and is an indication of whether the view is normal, web, page layout or online.

[0084] Attribute 31 is INTL DLL and is the international language that is default for the word processor program module.

[0085] Attribute 32 is LinesSelected and is the number of entire lines currently selected.

[0086] Returning now to FIG. 2, after the context information is collected at step 210, the method proceeds to step 215 where a rule is selected based upon the collected context information. It should be understood that typically a database of rules is maintained by the word processor program module 37 a. Each rule will generally have an associated trigger that indicates that the rule is to be applied to alter the formatting of the electronic document. The trigger will typically be a specific set of attributes, or context information, that indicates that the rule is appropriate to apply. Thus, when a specific set of context information is collected at step 210, a specific rule will be selected at step 215.

[0087] The rules database that is applied in an exemplary embodiment of the present invention is described below in reference to Table 2. Table 2 includes a rule number column, a rule name column, a rule trigger column, and a formatting column.

[0088] For Table 2 below, the following definitions apply: PageBreakDist is the number of lines between the last page break and the current location of the cursor; zones are conditions in which the user probably wants alignment of the document changed (for example, the center zone is 0.5 inches to the left or right of the midpoint between the right and left margins on the current line); a soft return is typically a depression of the Shift key or Enter key which doesn't create a new paragraph, but does create a new line break; TABLE 2 Rule List No. Rule Trigger Formatting  1 New Page PageDist = 1 AND Insert a page break Click EODDist > 2 and Insert TopDist number of EOP marks.  2 Click below a PageBreakDist = −1 Insert PageBreak page break (not on same page as number of EOPs EOD). before the page break AND position cursor before the page break.  3 Click below a ColumnBreakDist = Insert page break −1 ColumnBreakDist number of EOPs before the page break and position cursor before the page break.  4 Below EOD EODDist > 1 Insert EODDist insertion on number of EOP same page. marks between EOD and Floating IP.  5 Click on a line LastAlign = Right Insert EOP in directly under AND previous line style the EOD TextExists = NO and Left Align line. ANT) LMDist < LeftAlignThreshold  6 Insertion Point LineAlign = Left Left Align line Placed at Head AND of Empty TextExists = No Right/Center AND IP in Left Aligned Line Zone  7 Insertion Point LineAlign = Left Left Align line and Placed in AND insert left tab stop at middle of TextExists = No IP and insert tab Empty AND IP not in any character before Right/Center zone cursor. Aligned Line  8 Insertion at Line Align = Left Left Align Line and head of right AND TextExists = insert a right aligned line Yes AND IP in Left aligned tab stop at with text Zone. the right margin and insert tab character before existing text.  9 Insertion Line Align = Left Left Align Line and somewhere AND TextExists = insert a right within right Yes AND IP not in aligned tab stop at aligned line any Zone. the right margin and with text insert tab character before existing text and insert tab character before IP. 10 Insertion at Line Align = Center Left Align Line and Head of Center AND TextExists = insert a right Aligned Line Yes AND IP in Left aligned tab stop at with Text Zone. the right margin (or a center tab if centered aligned) and insert tab character before existing text and position IP at beginning of line. 11 Insertion at TextExists = Yes Left align line and Right Side of AND Line Align = add center tab stop Center Aligned Center AND cursor at mid indent point Line with Text is after all text on and add tab line. character before existing text and add tab character after existing text and add left tab at click location. 12 Insertion at TextExists = Yes Add left tab stop at right side of AND Line Align = location and add tab left aligned Left. character before IP. line with text 13 Insertion at TextExists = Yes Add tab character right zone of AND Line Align = after existing text left aligned Left AND IP is and add a right tab line with text after all text on line stop at right margin. AND paragraph doesn't continue on next line OR soft return exists to the left of the cursor. 14 Insertion on TextExists = Yes Add a left tab stop either side of AND LineAlign = at click location and center aligned Center AND IP is add tab character line with text on this line, but not before the IP. in right or left align zones. 15 Insertion on TextExists = No Add a left tab stop either side of AND LineAlign = at click location and center aligned Center AND IP is add tab character line without on this line, but not before the IP and text in right or left align change alignment to zones. left. 16 Insertion in Line Align = Right Left align line and center of right AND IP in center insert a center aligned line zone. Note: Should aligned tab stop in with text. happen for text and the center position no text lines. and insert tab character before IP and insert tab character after IP. 17 Insert at right LineAlign = Center Right align line. side of center and TextExists = No aligned line and IP in right zone. without text. 18 Right zone on LineAlign = Right Show right zone blank line AND TextExists = cursor and right No AND Zone = align line. Right Indent. 19 Classic Indent TextExists = No and Add first line indent Zone = Left Indent. at DEFAULT INDENT POSITION. 20 Insertion after Line Align = Left Insert left tab stop at all text on left AND IP is after any IP location and aligned line. and all text (on that insert tab character line). before the IP. 21 Click under TextExists = No Insert a left aligned tab AND tab stop at the same LastParaTabStops = position as above tab (One is being used) stop and insert tab AND LMDist is character before IP. within TabSnap Threshold of a tab stop in use. 22 Left of left tab TextExists = YES Insert left tab stop at on left aligned AND LineAlign = IP and insert tab line Left, left tab stop character after IP. exists and IP is to the left of the left tab stop. 23 Head of line TextExists = YES Insert IP before tab with left AND Left Tab Stop character. aligned tab Exists AND IP is to the left of the left tab stop. 24 In between left Text Exists = YES Insert left tab stop at and right tabs. AND LineAlign = IP; Insert left tab Note: This is a Left AND Tab Stops character before IP. redundant Exist to left and rule. right of IP. 25 In between left Text Exists = YES Insert center tab and right tabs AND LineAlign = stop at midpoint of in center zone Left AND Tab Stops indents and insert Exist to left and tab character before right of IP and IP in IP. center zone. 26 Center zone on Text Exists = YES Insert center tab left aligned AND LineAlign = stop at midpoint of line with text Left AND IP in indents and insert center zone tab character before IP. 27 To the right of Single graphic exists Change graphic to an inline to the left of the IP floating; turn text graphic AND no text is to wrap on right side the left of the table only (show generic or graphic. text cursor); insert “clear all” HTML break after IP. First click should not insert any indents/tabs or EOPs; 2nd click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 28 To the left of Single graphic exists Change graphic to the an inline to the right of the IP floating; turn text graphic AND no text is to wrap on left side the right of the table only (show generic or graphic. text cursor); insert “clear all” HTML break after IP. First click should not insert any indents/tabs or EOPs; 2nd click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 29 To the right of Single table exists to Turn Table text a table with no the left of the IP wrap on with “Left wrap AND Table Text Side Wrap” option; Wrap is off. insert “Clear All” HTML Break after IP; first click should not insert any indents/tabs or EOPs; second click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 30 To the right of Single table exists to Turn Table text a table with the left of the IP wrap on with “Left Left Wrap AND Table Text and Right” option; Wrap is set to “left insert “Clear All” side”; Table Text HTML Break after Wrap is off. IP; first click should not insert any indents/tabs or EOPs; second click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 31 To the left of a Single table exists to Turn Table text table with no the right of the IP wrap on with “Right wrap AND table text Side Wrap” option; wrap is off. insert “Clear All” HTML Break after IP; first click should not insert any indents/tabs or EOPs; second click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 32 To the left of a Single table exists to Turn Table text table with the right of the IP wrap on with “Left right wrap AND Table Text and Right” option; Wrap is set to “right insert “Clear All” side”; table text HTML Break after wrap is off. IP; first click should not insert any indents/tabs or EOPs; second click should not insert any indents/tabs (only EOPs); 3rd click should insert tabs/indents as appropriate. 33 In Table Cell In Table Cell, Enter EOCDist Past EOC EOCDist > 1 number of EOP marks. 34 In Table Cell In Table Cell, Enter EOP IN on one past EOCDist = 1. PREVIOUS LINE EOC line STYLE. 35 In Table Cell In Table Cell, Center Align. Center Align Zone = center. 36 In Table Cell In Table Cell, Left Align. Left Align Zone = left. 37 On a line Tab stops exist to Delete all tab stops existing tab the right of the end to the right of the stops of the text. text; apply other click and type rules as if there were no tab stops existing; Note: if it is a blank line, delete all tab stops. 38 Show Right IP line is left Display right zone zone cursor on aligned even if there cursor. left justified is no text; cursor is lines in the right zone. (including blank ones). 39 Click and type rule Convert existing will add a tab stop default tab stops in use to left tab stops.

[0089] Returning now to FIG. 2, after a rule is selected at step 215, the method 200 proceeds to step 220 and the cursor presentation is changed to match the selected rule. Typically, the cursor presentation will be an icon indicating the anticipated location of the insertion point should the user double-click the mouse button while the cursor is at its current location. In an exemplary embodiment, the cursor may be a left alignment icon indicating the insertion point will be left aligned, a center alignment icon indicating the insertion point will be center aligned, a right alignment icon indicating the insertion point will be right aligned, an indent icon indicating that the insertion point will be indented, and a text-wrapping icon indicating the type of text wrapping which will be applied to the object next to which the cursor is positioned Thus, a selected rule that corresponds to formatting steps that left align the insertion point will cause a left align cursor to be displayed.

[0090] Returning now to FIG. 2, after the cursor presentation is changed at step 220, the method proceeds to decision step 225. At decision step 225, a determination is made whether there is an indication to insert the insertion point into the document, such as by double-clicking the mouse button. If not, then the method returns to step 210. However, if there is a mouse double-click, then the method proceeds to step 230.

[0091] At step 230, formatting is performed to place the insertion point in the document. The formatting is typically based upon the rule which was selected at step 215. The formatting steps of an exemplary embodiment are described above in the fourth column of Table 2. After the formatting steps for the selected rule are performed at step 230 to place the insertion point in the document at step 230, the method 200 ends at step 299.

[0092] Referring now to FIG. 3, a flowchart illustrating a method 300 for placing an insertion point in an electronic document and displaying a cursor in accordance with an exemplary embodiment of the present invention will be described. The method 300 begins at start step 305 and proceeds to decision step 310.

[0093] At decision step 310, it is determined whether there is some type of a mouse movement or mouse double-click, or depression. If there is a mouse movement, then the method 300 proceeds to step 315. If there is a mouse double-click, then the method proceeds to step 330.

[0094] At step 315, context information regarding the location of the cursor in the document is collected. In an exemplary embodiment, information such as the information described in Table 1 is collected at step 315. The method then proceeds to step 320.

[0095] At step 320, the collected context information is applied to a database of rules to determine if the collected context information applies to one of the rules. Typically, this is accomplished by determining whether the collected context information matches a trigger for a rule, such as the triggers listed above in the third column of Table 2. Typically, the rules are ordered and the first rule to match is the one used. The method then proceeds to step 325.

[0096] At step 325, an appropriate cursor is displayed. Typically, the cursor is determined by the rule which was found at step 320. In other words, each rule will have an appropriate cursor. For example, if it is determined at step 320 that the collected context information matches the trigger for rule number 1, then the cursor associated with rule number 1 is displayed at step 325. The method then returns to decision step 310 from step 325. The cursor is typically used to provide the user with an indication of the placement of the insertion point should the user choose to enter an insertion point with the cursor in its current location. Thus, as the cursor is moved around the screen, the cursor will change based upon the changing context information.

[0097] If, at decision step 310, it is determined that there is a mouse double-click, then the method 300 proceeds to step 330. Context information regarding the location of the cursor, such as the attributes described in reference to Table 1, are collected at step 330. The method 300 then proceeds to step 335.

[0098] At step 335, the collected context information from step 330 is applied to a database of rules to determine if the collected context information applies to one of the rules. Typically, this is accomplished by determining whether the collected context information matches a trigger for a rule, such as the triggers listed in the third column of Table 2. The method then proceeds to step 340.

[0099] At step 340, formatting is performed to place the insertion point in the document. The formatting is typically based upon the rule which was selected at step 335. The formatting steps for specific rules of an exemplary embodiment are described above in the fourth column of Table 2. After the formatting steps are performed at step 340, the method 300 then proceeds to decision step 345.

[0100] At decision step 345, it is determined whether the current location of the insertion point is at the location of the cursor at the time the mouse button was double-clicked. It should be understood that method 300 is iterative and it may require the application of several rules and formatting steps before the insertion point is located at the cursor location. If, at decision step 345, it is determined that the insertion point is not at the cursor location at the time the mouse button was depressed, then the method proceeds to decision step 350. However, if, at decision step 345, it is determined that the insertion point is at the cursor location, then the method 300 proceeds to decision step 360.

[0101] At decision step 350, it is determined whether a maximum number of retries has been exceeded. If so, then the method proceeds to step 355. However, if a maximum number of retries has not been exceeded, then the method returns to step 330 and context information is collected based upon the adjusted position of the insertion point. The maximum number of retries is the number of iterations that will be made to place the insertion point at the cursor location.

[0102] At step 355, the original formatting of the document is restored. It should be understood that the original formatting refers to the formatting of the document before the mouse button was depressed at decision step 310. The method then proceeds from step 355 and returns to decision step 310.

[0103] At decision step 360, it is determined whether the next user action is an actualization or reset action. In an exemplary embodiment, an actualization is an indication that the user wants to enter elements into the electronic document at the insertion point. For example, an actualization may be typing text into the electronic document using the keyboard or changing font attributes. An actualization may also be an amount of time that elapses such that it is understood that the user actually does wish to place the insertion point at the new location.

[0104] A reset action is an indication that the user does not want any added formatting (added at step 340) to be saved and wants the original formatting restored. For example, a reset action may be a double-click of the mouse button in another part of the electronic document before entering any elements into the document and before any actualization time limit has elapsed.

[0105] If, at decision step 360, it is determined that the next action is an actualization, then the method returns to decision step 310 and the formatting added at step 340 is maintained. However, if, at decision step 360, it is determined that the next action is a reset action, then the method proceeds to step 355 and the original formatting of the document is restored.

[0106] To demonstrate method 300, an example is provided in reference to FIGS. 4A and 4B. Referring now to FIG. 4A, an electronic document 400, paragraph marks 405, and end of document (EOD) marker 410, a title 415, an insertion point 417 and a cursor 420 are illustrated.

[0107] Referring now to FIGS. 3, 4A, and 4B, an example illustrating the method 300 will be described. The method 300 starts at start step 305 and proceeds to decision step 310.

[0108] At decision step 310, it is determined whether there is a mouse movement or mouse double-click, or depression. For purposes of this example, assume that the user double-clicks the mouse button with the cursor located as illustrated in FIG. 4A. The method proceeds to step 330.

[0109] Context information regarding the location of the cursor, such as the attributes described in reference to Table 1, are collected at step 330. The method 300 then proceeds to step 335.

[0110] At step 335, the collected context information from step 330 is applied to a database of rules to determine if the collected context information applies to one of the rules. Typically, this is accomplished by determining whether the collected context information matches a trigger for a rule, such as the triggers listed in the third column of Table 2. For this example, rule number 3 in Table 2 would apply because the collected context information matches the trigger for rule 3, i.e., that the number of lines between the end of document and the floating IP is greater than one. The number of lines between the end of document and the floating IP is also know as the EODDist. The method then proceeds to step 340.

[0111] At step 340, formatting is performed to place the insertion point in the document. The formatting is typically based upon the rule which was selected at step 335. The formatting steps for specific rules of an exemplary embodiment are described above in the fourth column of Table 2. For this example, the formatting steps associated with rule 3 is to insert EODDist number of paragraph marks between the EOD and the floating IP. After the formatting steps are performed at step 340, the method 300 then proceeds to decision step 345.

[0112] At decision step 345, it is determined whether the current location of the insertion point is at the location of the cursor at the time the mouse button was double-clicked. For this example, at decision step 345, it is determined that the insertion point is at the cursor location, so the method 300 proceeds to decision step 360.

[0113] At decision step 360, it is determined whether the next user action is an actualization or reset action. For this example, assume that the user action is an actualization, so the method returns to decision step 310 and the formatting added at step 340 is maintained. As shown in FIG. 4B, after method 300 is performed, insertion point 417 has been moved to the location at which cursor 420 (FIG. 4A) was double-clicked by the user. Paragraph marks 425 have been added based upon the formatting steps of rule 3 (Table 2).

[0114] From the foregoing description, it will be apparent to those skilled in the art that the present invention provides a method and system for placing an insertion point in an electronic document. The Click and Type feature is intuitive to use and saves the user time because paragraph marks and formatting constraints often do not have to be entered. The user may simply double-click (or click) at any point in an electronic document and begin typing.

[0115] It should be understood that, although the present invention has been described above as requiring a double-click of the mouse button before inserting an insertion point, any number of clicks, including a single click, may be implemented to insert the insertion point.

[0116] It should be understood that the present invention may also include a one-two click feature. In one embodiment, this one-two click feature will place the insertion point at the end of a paragraph or end of a document or flush against the left margin of the line over which the cursor is positioned on the first double click and the user will have to double click the mouse button a second time to place the insertion point at the exact location that the cursor is located. The one-two click feature provides continuity between the prior art and the present invention because the first action is the action many users expect based upon the prior art.

[0117] Moreover, if the one-two click model is used, then the user does not need to worry about being totally accurate in positioning the cursor, because on the first double click, it will be placed in the location that the user has a high probability of desiring. If that position is not the location that the user wants the cursor placed, another double click will move it to the exact location. For example, when clicking to the right of an inline table or image, the first double click will always place the cursor directly adjacent to the top right corner of the table or image.

[0118] Although the present invention has been described above as implemented in a word processing program module, it should be understood that the present invention may be implemented in other program modules, including, but not limited to, HTML authoring programs and presentation programs such as the “POWERPOINT” application program module, marketed by Microsoft Corporation of Redmond, Wash.

[0119] It should be further understood that the present invention could be used to drag text or an object to a certain location and then insert the dragged text or object along with the appropriate formatting necessary to allow the dragged object to be placed in the location to which it was dragged. The method of inserting a dragged object includes obtaining information about the text or object being dragged.

[0120] Although the present invention has been described above as implemented in the preferred application program module, it will be understood that alternative embodiments will become apparent to those skilled in the art to which the present invention pertains without departing from its spirit and scope. Accordingly, the scope of the present invention is defined by the appended claims rather than the foregoing description. 

What is claimed is:
 1. For an electronic system for creating and editing an electronic document, a method for placing an insertion point in the electronic document, the method comprising the steps of: (a) collecting context information regarding a location of a cursor in the electronic document; (b) selecting one of a plurality of rules based on the collected context information; (c) in response to selecting the rule, changing a presentation of the cursor to indicate an anticipated location of the insertion point and the type of formatting that will be applied to text and objects located in close proximity to the cursor location; (d) determining whether an indication has been received to place the insertion point in the electronic document; and (e) if so, then performing formatting to place the insertion point in the electronic document.
 2. The method recited in claim 1 wherein the presentation is a cursor.
 3. The method recited in claim 1 wherein the step of determining whether an indication has been received to place the insertion point in the electronic document comprises determining whether a button on a mouse has been double-clicked.
 4. The method recited in claim 1 further comprising the step of: if an indication has not been received to place the insertion point in the electronic document, then repeating steps (a)-(e).
 5. The method recited in claim 1 wherein the step of performing formatting to place the insertion point in the electronic document comprises adding and deleting properties from the electronic document.
 6. The method recited in claim 1 wherein the step of collecting context information regarding a location of a cursor in the electronic document is performed in response to a change in the location of the cursor.
 7. The method recited in claim 1, wherein each one of the plurality of rules is associated with one of a plurality of triggers, and wherein the step of selecting a coinciding rule from one of a plurality of rules based on the collected context information comprises matching the collected context information with one of the plurality of triggers and selecting the rule associated with the matched trigger as the coinciding rule.
 8. The method recited in claim 7, wherein each one of the plurality of rules is further associated with a sequence of formatting steps, and wherein the step of performing formatting to place the insertion point in the electronic document comprises performing the sequence of formatting steps associated with the coinciding rule.
 9. A computer-readable medium having computer-executable instructions for performing the steps recited in claim
 8. 10. For an electronic system for creating and editing an electronic document, a method for displaying a cursor, the method comprising the steps of: (a) collecting context information regarding a location of the cursor; (b) applying the collected context information to a database of a plurality of rules to determine whether the collected context information coincides with one of the plurality of rules; (c) if so, then determining one of a plurality of cursors associated with the coinciding rule; and (d) displaying the associated cursor.
 11. The method recited in claim 10 wherein the associated cursor indicates the anticipated location of an insertion point in the electronic document.
 12. The method recited in claim 10 wherein the plurality of cursors comprises a left alignment icon, a right alignment icon, a center alignment icon, and a text wrap icon.
 13. The method recited in claim 10 further comprising the step of repeating steps (a)-(d) as the cursor is moved around the electronic document.
 14. A computer-readable medium having computer-executable instructions for performing the steps recited in claim
 13. 15. For an electronic system for creating and editing an electronic file, a method for adjusting the location of an insertion point in an electronic file to match the location of a cursor, the method comprising the steps of: (a) collecting context information regarding a location of a cursor in the electronic file; (b) applying the collected context information to a database of a plurality of rules to determine whether the collected context information coincides with one of the plurality of rules; (c) if so, then adjusting the location of the insertion point based upon the coinciding rule; (d) determining whether the location of the insertion point matches the location of the cursor; and (e) if not, then repeating steps (a)-(d).
 16. The method recited in claim 15 wherein the step of adjusting the location of the insertion point based upon the coinciding rule comprises applying formatting properties to the electronic file.
 17. The method recited in claim 16 wherein the formatting properties are stored in association with the coinciding rule.
 18. A computer-readable medium having computer-executable instructions for performing the steps recited in claim
 17. 19. The method recited in claim 1, wherein the indication comprises a first click and a second click and wherein the insertion point is placed at a first location in response to the first click and wherein the insertion point is placed at a second location in response to the second click.
 20. The method recited in claim 1, further comprising the step of receiving an actualization input before performing the step of performing formatting to place the insertion point in the electronic document. 